package com.codeduck.mp.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.codeduck.mp.entity.Role;
import com.codeduck.mp.mapper.RoleMapper;
import com.codeduck.mp.service.IRoleService;
import org.springframework.stereotype.Service;

/**
 * @author: <a href="mailto:codeduck@163.com">Codeduck</a>
 * @createDate: 2022-08-31
 */
@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements IRoleService {
    @Override
    public int addRole(Role role) {
        return this.baseMapper.insert(role);
    }
}
